import request from '@/utils/request'

export function login(username, password, MYSAPSSO2) {
  return request({
    url: '/user/login',
    withCredentials: process.env.NODE_ENV === 'production',
    method: 'post',
    data: {
      username,
      password,
      MYSAPSSO2
    }
  })
}

export function getInfo() {
  return request({
    url: '/user/getInfo',
    method: 'get',
    params: { }
  })
}

export function logout() {
  return request({
    url: '/user/logout',
    method: 'post'
  })
}
